<template>
  <!--服务内容-->
  <div class="service_content">
   <div class="box">
       <div v-for="item in conList" class="content">
       <div class="left">{{item.title}}</div>
       <div class="right">
        <span v-for="(item2,subindex) in item.son" class="text">{{subindex+1}}.{{item2.title}}</span>
       </div>
    </div>
   </div>
  </div>
  <!--服务内容-->
</template>

<script>
  export default {
    name: "ServiceContent",
    data() {
      return {
        conList:[]
      }
    },

    created() {
      this.getList();
      this.$emit("childData",this.$route.query.childdata);
    },

    methods: {
      getList(){
        let that = this;
        that.$http.get('/api/ScreenkApi/getVoluntCategory', {vollege_id:this.$util.vollege_id}, r => {
          console.log('123',r)
          that.conList = r.data;
        })
      }
    }

  }
</script>

<style scoped>
  .service_content {
    /*padding: 59px 37px 0 0px;*/
    padding: 0px 0px 0px 0px;
    height: 700px;
    overflow-y: scroll;
  }
  .box{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .content{
    width: 385px;
    height: 390px;
    display: flex;
    margin: 0 25px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    flex-direction: column;
  }

  .left {
    height: 90px;
    font-size: 30px;
    color: #278ae0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }

  .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: flex-start;
    justify-content: space-evenly;
    box-sizing: border-box;
    padding-left: 3px;
    padding-right: 3px;
  }

  .text {
    font-size: 26px;
    color: #333333;
    padding-left: 20px;
    margin-bottom: 5px;
    line-height: 40px;
  }

</style>
